/*
 * @lc app=leetcode.cn id=1 lang=javascript
 *
 * [1] 两数之和
 */

// @lc code=start
/**
 * @param {number[]} nums
 * @param {number} target
 * @return {number[]}
 */
var twoSum = function (nums, target) {
    for (const key1 in nums) {
        for (const key2 in nums) {
            if ((nums[key1] + nums[key2]) == target) {
                if (key2 != key1) {
                    return [key1, key2]
                }
            }

        }
    }

};
// @lc code=end

